package br.com.digicade.geosite.gpsavl.resource;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;

@Path(value = "/security")
@Produces("application/json; charset=UTF-8")
public interface SecurityResource {
	
	@POST
	@Path(value = "/login")
	public boolean login(
			@Context HttpServletRequest request,
			@FormParam("usuario") String usuario, 
			@FormParam("senha") String password);
	
	@POST
	@Path(value = "/keepAlive")
	public boolean keepAlive();

	@POST
	@Path(value = "/logout")
	public boolean logout(@Context HttpServletRequest request);
}
